<?php
    require_once("../config/bd.php");
	global $dbcon, $db;
	$dbcon = pg_connect("host=$hostaddr port=$dbport dbname=$database user=$username password=$password");
?>